package com.ruoyi.platform.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.TbDriverAppMapper;
import com.ruoyi.platform.domain.TbDriverApp;
import com.ruoyi.platform.service.ITbDriverAppService;

/**
 * 司机端APP优化Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class TbDriverAppServiceImpl implements ITbDriverAppService 
{
    @Autowired
    private TbDriverAppMapper tbDriverAppMapper;

    /**
     * 查询司机端APP优化
     * 
     * @param driverAppId 司机端APP优化主键
     * @return 司机端APP优化
     */
    @Override
    public TbDriverApp selectTbDriverAppByDriverAppId(Long driverAppId)
    {
        return tbDriverAppMapper.selectTbDriverAppByDriverAppId(driverAppId);
    }

    /**
     * 查询司机端APP优化列表
     * 
     * @param tbDriverApp 司机端APP优化
     * @return 司机端APP优化
     */
    @Override
    public List<TbDriverApp> selectTbDriverAppList(TbDriverApp tbDriverApp)
    {
        return tbDriverAppMapper.selectTbDriverAppList(tbDriverApp);
    }

    /**
     * 新增司机端APP优化
     * 
     * @param tbDriverApp 司机端APP优化
     * @return 结果
     */
    @Override
    public int insertTbDriverApp(TbDriverApp tbDriverApp)
    {
        return tbDriverAppMapper.insertTbDriverApp(tbDriverApp);
    }

    /**
     * 修改司机端APP优化
     * 
     * @param tbDriverApp 司机端APP优化
     * @return 结果
     */
    @Override
    public int updateTbDriverApp(TbDriverApp tbDriverApp)
    {
        tbDriverApp.setUpdateTime(DateUtils.getNowDate());
        return tbDriverAppMapper.updateTbDriverApp(tbDriverApp);
    }

    /**
     * 批量删除司机端APP优化
     * 
     * @param driverAppIds 需要删除的司机端APP优化主键
     * @return 结果
     */
    @Override
    public int deleteTbDriverAppByDriverAppIds(Long[] driverAppIds)
    {
        return tbDriverAppMapper.deleteTbDriverAppByDriverAppIds(driverAppIds);
    }

    /**
     * 删除司机端APP优化信息
     * 
     * @param driverAppId 司机端APP优化主键
     * @return 结果
     */
    @Override
    public int deleteTbDriverAppByDriverAppId(Long driverAppId)
    {
        return tbDriverAppMapper.deleteTbDriverAppByDriverAppId(driverAppId);
    }
}
